package com.drpclub.gamebackend.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author ：drp
 * @Descrpition 文章内容基础信息
 * @date ：Created in 2020/5/8 17:58
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Resources {
    @NotEmpty(message = "标题不能为空")
    private String title;
    @NotEmpty(message = "封面图片链接不能为空")
    private String imgUrl;// 封面图片
    @NotEmpty(message = "专题类型不能为空")
    private String type;// 类型
    @NotEmpty(message = "文集不能为空")
    private String collectionName;
}
